# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=fdk-aac
pkgver=2.0.2
pkgrel=0
pkgdesc="Fraunhofer FDK AAC codec library"
url="https://sourceforge.net/projects/opencore-amr"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/opencore-amr/fdk-aac-$pkgver.tar.gz"
options="!check" # no upstream/available testsuite

build() {
	./configure \
		--prefix="/usr" \
		--disable-static
	make
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm644 NOTICE \
		"$pkgdir"/usr/share/licenses/libfdk-aac/NOTICE
}

sha512sums="
8e5a7992869a7e649bee6d41bf7c6e408cec7ba1931a6cd7a9ad8a01e6ac49bd299ddd147b18823e8ee379ce7c6373d7f5a94f0f859ed973a30c61eccd53fa7e  fdk-aac-2.0.2.tar.gz
"
